package cn.fengzhilun.javase.day10;

class Cat extends Animal{
	public  Cat() {
		//System.out.println("子类中构造器");
		this("红色");
		System.out.println("子类中构造器");

	}
	public Cat(String color) {
		super(color);
		System.out.println("猫咪的有参构造函数。");
		super.shout();
	}
	@Override
	public void shout() {
		System.out.println("子类重写父类方法");
	}
	
	
}
